// 引入mitt
import mitt, { type Emitter } from 'mitt'

type EventTypes = {
  'update:displayFlag': boolean
  'update:mainComp': string
  'refresh:menuTableData': void
  'refresh:userTableData': void
}

// 创建emitter
const emitter: Emitter<EventTypes> = mitt()

// 暴露mitt
export default emitter
